﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace class_Entidad
{
    [DataContract]
    public class RECETA_EN
    {
        [DataMember]
        public decimal ID_RECETA { get; set; }
        [DataMember]
        public string COD_RECETA { get; set; }
        [DataMember]
        public string NOMBRE_REC { get; set; }
        [DataMember]
        public decimal TIPO_PLATO { get; set; }
        [DataMember]
        public decimal CLASE_PLATO { get; set; }
        [DataMember]
        public byte IMAGEN { get; set; }
        [DataMember]
        public decimal EST_RECETA { get; set; }

        public List<RECETA_INGREDIENTE_EN> ListaIngrediente { get; set; }
    }

    [DataContract]
    public class LST_RECETA_EN : RECETA_EN
    {
        [DataMember]
        public string DESC_TIPO_PLATO { get; set; }
        [DataMember]
        public string DESC_CLASE_PLATO { get; set; }
        [DataMember]
        public string DESC_EST_RECETA { get; set; }
    }

    [DataContract]
    public class PARAM_RECETA_EN
    {
        [DataMember]
        public decimal? ID_RECETA { get; set; }
        [DataMember]
        public string COD_RECETA { get; set; }
        [DataMember]
        public string NOMBRE_REC { get; set; }
        [DataMember]
        public decimal? TIPO_PLATO { get; set; }
        [DataMember]
        public decimal? CLASE_PLATO { get; set; }
        [DataMember]
        public decimal? ID_PADTPROD { get; set; }
    }

    [DataContract]
    public class RECETA_INGREDIENTE_EN
    {
        [DataMember]
        public Int32 ID_RECETA { get; set; }
        [DataMember]
        public Int32 ID_PRODUCTO { get; set; }
        [DataMember]
        public Int32 ID_TPROD { get; set; }
    }

    [DataContract]
    public class LST_RECETA_INGREDIENTE_EN : RECETA_INGREDIENTE_EN
    {
        [DataMember]
        public string DESC_TPROD { get; set; }
        [DataMember]
        public string NOM_PROD { get; set; }
    }

}
